var QRCode = require('qrcode')

QRCode.toString("http://jd.com", {type: 'terminal'}, function (err, data)
{
    console.log(data)
});